TAGs: objective function calculator